package com.outsource.framework.util.common.seriallizer;

import java.io.IOException;

import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.JsonSerializer;
import org.codehaus.jackson.map.SerializerProvider;

import com.outsource.framework.util.common.GodGenerator;

public class CustomUniCodeSerializer extends JsonSerializer<String> {

	@Override
	public void serialize(String arg0, JsonGenerator arg1,
			SerializerProvider arg2) throws IOException,
			JsonProcessingException {
		// TODO Auto-generated method stub
		String string = GodGenerator.StringtoUnicode(arg0, false);
		arg1.writeString(string);
	}

}
